package ss.pku.jsa.worklist.util;

import java.lang.reflect.Array;

public class GenericArrayGenerator {
	@SuppressWarnings("unchecked")
	public static <T> T[] genericArray(Class<T> type, int length){
		T[] array;
		array = (T[])Array.newInstance(type, length);
		return array;
	}
}

